<!-- 修改密码页面 -->


{{extend '../_layouts/home.html'}} {{block 'title'}}{{'多人博客 - 首页'}}{{/block}} {{block 'body'}}
<section class="container">
    {{include '../_partials/settings-nav.html'}}
    <div class="col-md-5">
        <div class="subhead">
            <h2>修改密码</h2>
        </div>
        <hr>
        <form action="/settings/admin" method="post">
            <input type="hidden" name="id" value="{{ user._id }}">

            <!-- <div class="form-group">
                <label for="exampleInputPassword1">当前密码</label>
                <input type="password" class="form-control" id="exampleInputPassword1" placeholder="">
            </div> -->
            <div class="form-group">
                <label for="exampleInputPassword1">新的密码</label>
                <input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="">
            </div>
            <!-- <div class="form-group">
                <label for="exampleInputPassword1">确认密码</label>
                <input type="password" class="form-control" id="exampleInputPassword1" placeholder="">
            </div> -->
            <button type="submit" class="btn btn-success">保存</button>
        </form>
        <div class="subhead">
            <h2>注销账号</h2>
            <hr>
        </div>
        <div>
            <p>一旦注销，不可找回，请谨慎操作</p>
            <a class="btn btn-danger" href="/user/delete?id={{ user._id }}">删除</a>
        </div>
        <hr>
    </div>
</section>
{{/block}}